class GenericParser:
	parsetype = None

	def	accepts(self, mimetype):
		return self.parsetype == mimetype

	def __init__(self, mimetype):
		self.parsetype = mimetype


class TextParser(GenericParser):
	def __init__(self):
		super().__init__('text/plain')

